<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>注册</title>
    <!-- Custom Theme files -->
    <link th:href="@{/css/login.css}" rel="stylesheet" type="text/css" media="all"/>
    <!-- Custom Theme files -->
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="keywords" content="Login form web template, Sign up Web Templates, Flat Web Templates, Login signup Responsive web template, Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyErricsson, Motorola web design" />
    <!--Google Fonts-->
    <link th:href='@{http://fonts.useso.com/css?family=Roboto:500,900italic,900,400italic,100,700italic,300,700,500italic,100italic,300italic,400}' rel='stylesheet' type='text/css'>
    <link th:href='@{http://fonts.useso.com/css?family=Droid+Serif:400,700,400italic,700italic}' rel='stylesheet' type='text/css'>
    <!--Google Fonts-->
    <link th:href="@{/css/plugins/iCheck/custom.css}" rel="stylesheet"/>
    <link th:href="@{/css/plugins/sweetalert/sweetalert.css}" rel="stylesheet"/>
    <script th:src="@{/script/plugins/sweetalert/sweetalert.min.js}"></script>
    <script th:inline="javascript">
        var error = [[${error}]];
        setTimeout(function check() {
            if(error!=null){
                swal({
                    title : "温馨提示",
                    text : error,
                    });
            }
            $('.i-checks').iCheck({
                checkboxClass: 'icheckbox_square-green',
                radioClass: 'iradio_square-green',
            });
        },100);

    </script>

</head>
<body>
<div class="login">

    <form role="form" action="register.html" method="post">
        <div class="login-top">
            <h1>注册</h1>
            <input type="text" class="form-control" placeholder="用户名" name="userName" required=""/>
            <input type="password" class="form-control" placeholder="密码" name="userPassword" required=""/>
            <input type="email" class="form-control" placeholder="邮箱" name="userEmail" required=""/>  <!-- 不懂格式错误 -->
            <div class="form-group">
                <div class="checkbox i-checks"><label> <input type="checkbox"/><i></i> 记住账号密码 </label></div>
            </div>
            <div class="forgot">
                <a href="#">检验完毕</a>
                <input type="submit" th:value="注册" onclick="check()">
            </div>
        </div>
        <div class="login-bottom">
                 <h3 ><a>已经注册？</a> &nbsp;<a href="login.html" th:href="@{login}" style="color : #c6c8ca">登录</a> </h3>
            </div>
    </form>
</div>
<div class="clickme">
    <p><a th:href="@{index}" href="../index.html" th:text="#{login.ClickMe}">点我回首页</a></p>
</div>


</body>
</html>